Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Honduras structs #1158

Merged
merged 6 commits into from
Jul 17, 2024
Merged

Add Honduras structs #1158

merged 6 commits into from
Jul 17, 2024

Conversation

rodrigomha
Copy link
Contributor

@rodrigomha rodrigomha commented Jul 16, 2024

No description provided.

@rodrigomha rodrigomha requested a review from jd-lara July 16, 2024 22:35
@rodrigomha rodrigomha changed the title Add Honduras structs [DNMY] Add Honduras structs Jul 16, 2024
Copy link

codecov bot commented Jul 16, 2024

Codecov Report

Attention: Patch coverage is 90.47619% with 22 lines in your changes missing coverage. Please review.

Project coverage is 84.78%. Comparing base (79b55f0) to head (940132e).
Report is 5 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1158      +/-   ##
==========================================
+ Coverage   84.62%   84.78%   +0.16%     
==========================================
  Files         177      182       +5     
  Lines        8115     8346     +231     
==========================================
+ Hits         6867     7076     +209     
- Misses       1248     1270      +22     
Flag Coverage Δ
unittests 84.78% <90.47%> (+0.16%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/PowerSystems.jl 100.00% <ø> (ø)
src/models/dynamic_generator.jl 84.37% <50.00%> (-7.94%) ⬇️
src/models/generated/DEGOV1.jl 92.10% <92.10%> (ø)
src/models/generated/ESAC8B.jl 92.85% <92.85%> (ø)
src/models/generated/PIDGOV.jl 93.47% <93.47%> (ø)
src/models/generated/ST6B.jl 93.47% <93.47%> (ø)
src/models/generated/WPIDHY.jl 93.18% <93.18%> (ø)
src/parsers/psse_dynamic_data.jl 83.92% <55.55%> (-1.04%) ⬇️

@rodrigomha rodrigomha changed the title [DNMY] Add Honduras structs Add Honduras structs Jul 17, 2024
@rodrigomha rodrigomha marked this pull request as ready for review July 17, 2024 03:46
m = match(r"^\((\d+)\s*,\s*(\d+)\)$", _v)
m2 = match(r"^\((\d+)\s*,\s*(\d+),\s*(\d+)\)$", _v)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jd-lara Any idea how to generalize this Regex for a tuple of n-length? The PIDGOV model and WPIDHY models have a tuple with three terms.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do this for another time. For now this should be fine

@@ -153,3 +153,13 @@ function _calc_states(machine, shaft, avr, prime_mover, pss)
get_states(pss),
)
end

function get_degov1_states(droop_flag::Int)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can put this in the code auto generator.

"""Get [`DEGOV1`](@ref) `ext`."""
get_ext(value::DEGOV1) = value.ext
"""Get [`DEGOV1`](@ref) `states`."""
get_states(value::DEGOV1) = value.states
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
get_states(value::DEGOV1) = value.states
get_states(value::DEGOV1) = get_degov1_states(value)

@jd-lara jd-lara merged commit cfcd351 into main Jul 17, 2024
8 checks passed
@jd-lara jd-lara deleted the rh/add_honduras_structs branch August 5, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants